package com.a.lib_ui.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class Packaging implements Parcelable {

    private String packID;
    private String packNo;
    private String packName;

    public Packaging() {
    }

    public Packaging(String packID, String packNo, String packName) {
        this.packID = packID;
        this.packNo = packNo;
        this.packName = packName;
    }

    protected Packaging(Parcel in) {
        packID = in.readString();
        packNo = in.readString();
        packName = in.readString();
    }

    public static final Creator<Packaging> CREATOR = new Creator<Packaging>() {
        @Override
        public Packaging createFromParcel(Parcel in) {
            return new Packaging(in);
        }

        @Override
        public Packaging[] newArray(int size) {
            return new Packaging[size];
        }
    };

    public String getPackID() {
        return packID;
    }

    public void setPackID(String packID) {
        this.packID = packID;
    }

    public String getPackNo() {
        return packNo;
    }

    public void setPackNo(String packNo) {
        this.packNo = packNo;
    }

    public String getPackName() {
        return packName;
    }

    public void setPackName(String packName) {
        this.packName = packName;
    }

    @Override
    public String toString() {
        return "Packaging{" +
                "packID='" + packID + '\'' +
                ", packNo='" + packNo + '\'' +
                ", packName='" + packName + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(packID);
        dest.writeString(packNo);
        dest.writeString(packName);
    }
}
